package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.entity.CmsProductLabel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CmsProductLabelMapper extends BaseMapper<CmsProductLabel> {

    /**
     * 添加商品标签
     * @param productLabel
     * @param productId
     * @param userId
     * @return
     */
    int insertProductLabel(@Param("productLabel") List<String> productLabel, @Param("productId") Long productId, @Param("userId") Long userId);

}